import React, { Component } from 'react'

export default class Son extends Component {
    // 组件  将要   接收  属性
    componentWillReceiveProps() {
        console.log('props修改')
    }
    shouldComponentUpdate() {
        console.log('shouldComponentUpdate')
        return true
    }
    componentWillUpdate() {
        console.log('componentWillUpdate')
    }
    render() {
        console.log('render')
        const { count } = this.props
        return (
            <div>
                Son -- { count }
            </div>
        )
    }
    componentDidUpdate() {
        console.log('componentDidUpdate')
    }
}
